package com.ysd.entity;

/**
 * 留言
 * 
 * @author dzj20
 *
 */
public class Common {
	private Integer id; // 留言编号
	private Integer u_id; // 用户id,外键
	private Integer bookId; // 书id,外键
	private String content; // 留言内容
	private String date; // 留言时间
	private Integer status; // 留言状态
	private String reply; // 回复内容

	private User user;
	private Books books;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getU_id() {
		return u_id;
	}

	public void setU_id(Integer u_id) {
		this.u_id = u_id;
	}

	public Integer getBookId() {
		return bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getReply() {
		return reply;
	}

	public void setReply(String reply) {
		this.reply = reply;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Books getBooks() {
		return books;
	}

	public void setBooks(Books books) {
		this.books = books;
	}

	public Common(Integer id, Integer u_id, Integer bookId, String content, String date, Integer status, String reply,
			User user, Books books) {
		super();
		this.id = id;
		this.u_id = u_id;
		this.bookId = bookId;
		this.content = content;
		this.date = date;
		this.status = status;
		this.reply = reply;
		this.user = user;
		this.books = books;
	}

	public Common() {
		super();
	}

	@Override
	public String toString() {
		return "Common [id=" + id + ", u_id=" + u_id + ", bookId=" + bookId + ", content=" + content + ", date=" + date
				+ ", status=" + status + ", reply=" + reply + ", user=" + user + ", books=" + books + "]";
	}

}
